<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
	initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/consolazione/js/consolazione.js"></script>
<link href="<?php echo $mosConfig_live_site;?>/templates/consolazione/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body class="waterbody">

<div align="center">
<div id="container">
	<div id="containerbg">		
		<div id="header">
			<!-- start logo -->
			<div id="logo">
			<a href="index.php"></a>
			</div>
			<!-- end logo -->		
			<!-- start top menu -->
			<div id="topmenu">
			<?php mosLoadModules('top',-1); ?>
			</div>
			<!-- end top menu.  -->
		</div>
		<div id="outerall">
			<!-- start image header -->
			<div id="imgheader">

			</div>
			<!-- end image header -->
			<div id="container_inner">
			 <?php
       if (mosCountModules('left') > 0 ) {
       ?>
				<!-- start left column. -->
				<div id="leftcol">
				<?php mosLoadModules('left'); ?>
				</div>
				<!-- end left column. -->
				<?php
        }
        ?>
				<!-- start pathway -->
				<div id="pathway">
				<?php mosPathWay(); ?>
				</div>
				<!-- end pathway -->
				<!-- start content top wrapper -->


	

				<!-- end content top wrapper -->
				<!-- start main body -->
				<div <?php if (mosCountModules('left') > 0) { ?> id="content_main" <?php } else { ?> id="content_full" <?php } ?> > 
				<?php 
				if($_REQUEST['option'] && $_REQUEST['option'] != 'com_frontpage') {
					mosMainBody();
				} else {
				?>				


				<?php if (!$editmode /* and (mosCountModules('user1') or mosCountModules('user2'))*/) : ?>
					<div class="userblock">

							<div class="user1">
								<?php mosLoadModules('user1', -2); ?>
							</div>


							<div class="user2">
								<?php mosLoadModules('user2', -2); ?>
  							<div class="user4">
  								<?php mosLoadModules('user4'); ?>
  							</div>
  
  
  							<div class="user5">
  								<?php mosLoadModules('user5', -2); ?>
  							</div>
  							
  							<div class="user8">
  							   <div class="centenario">
  							   <h3>Centenario di Fondazione</h3>
  							     <div id="centenario_gallery">
  								<?php mosLoadModules('user8', -2); ?>
  								    </div>
  								    <div id="centenario_text">
  								<?php mosLoadModules('user9', -2); ?>    
  								    </div>
								<div class="bottom"></div>	
  								</div>
  							</div>  							
							</div>

					</div>
				<?php endif; ?>
				<?php if (!$editmode /*and (mosCountModules('user3') or mosCountModules('user4') or mosCountModules('user5'))*/): ?>
					<div class="userblock">

							<div class="user3">
								<?php mosLoadModules('user3', -2); ?>
							</div>



					</div>
				<?php endif; ?>
				<?php if (!$editmode /* and (mosCountModules('user6') or mosCountModules('user7')) */) : ?>
					<div class="userblock">
							
							<div class="user6">
								<?php mosLoadModules('user6', -2); ?>
							</div>

							<div class="user7">
								<?php mosLoadModules('user7', -2); ?>
							</div>

					</div>
				<?php endif; ?>				
				
				<?php 
				
				}
				?>				

				</div>

				<!-- end main body -->
			</div>
		</div>
		<div class="clear">
		</div>
		<?php
		if (mosCountModules('banner') >= 1) {
		?>
			<!-- start banner.  -->
			<div id="banner">
			<?php mosLoadModules('banner'); ?>
			</div>
			<!-- end banner. -->
		<?php
		}
		?>
		
		<div id="blackline">
		</div>
		<div class="clear">
		</div>
		<div id="bottompadding"></div>
	</div>
	<!-- copyright notice -->
	<div id="copyright">
		<?php
		if (mosCountModules('copyright') >= 1) {
		?>
			<!-- start copyright.  -->
			<?php mosLoadModules('copyright'); ?>
			<!-- end copyright. -->
		<?php
		}
		?>
	</div>

</div>
</div>

<?php mosLoadModules('debug', -1);?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-617877-3");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>